import request from '@/utils/request'

/**
 * 获取产线自定义数据
 * @param getProductLineCustomData
 */
export function getProductLineCustomData(productLines) {
  return request({
    url: `/md/commonCustomDatas/getProductLineCustomData`,
    method: 'get',
    params: productLines
  })
}

/**
 * 查询产线数据弹出框
 * @param list
 */
export function selectPageProductLine(data) {
  return request({
    url: `/md/commonBrowsers/selectPageProductLine`,
    method: 'post',
    data
  })
}
/**
 * 查询车间数据弹出框
 * @param list
 */
export function selectPageWorkShop(data) {
  return request({
    url: `/md/commonBrowsers/selectPageWorkShop`,
    method: 'post',
    data
  })
}
/**
 * 通过产线查询数据
 * @param inquire
 */
export function inquireProductLines(productLines) {
  return request({
    url: `/md/productLines/query`,
    method: 'get',
    params: productLines
  })
}
/**
 * 保存
 * @param save
 */
export function saveProductLines(data) {
  return request({
    url: `/md/productLines/save`,
    method: 'post',
    data
  })
}

/**
 * 删除产线信息
 * @param delete
 */
export function deleteProductLines(productLines) {
  return request({
    url: `/md/productLines/delete`,
    method: 'get',
    params: productLines
  })
}
